<template>
  <div id="updateShop">
    <div class="updateShop">
      <ul>
        <li>
          <label>商品名称：</label>
          <input type="text" v-model="newData.proName" />
        </li>
        <li>
          <label>分类：</label>
          <input type="text" v-model="newData.column" />
        </li>
        <li>
          <label>品牌：</label>
          <input type="text" v-model="newData.brand" />
        </li>
        <li>
          <label>LOGO：</label>
          <input type="text"  v-model="newData.logo" />
        </li>
        <li>
          <label>图片：</label>
          <input type="text" v-model="newData.proImg" />
        </li>
        <li>
          <label>价格：</label>
          <input type="text"  v-model="newData.price" />
        </li>
        <li>
          <label>介绍：</label>
          <input type="text" v-model="newData.introduce" />
        </li>
        <li>
          <label>库存：</label>
          <input type="text" v-model="newData.stock" />
        </li>
        <li>
          <label>折扣：</label>
          <input type="text" v-model="newData.discount" />
        </li>
        <li>
          <label>评分：</label>
          <input type="text" v-model="newData.score" />
        </li>
      </ul>
      <div class="buttons">
        <button style=" backgroundColor:skyblue;" @click="updateShopsignOut">退出</button>
        <button style=" backgroundColor:yellow;" @click="updateShopSubmit">提交</button>
      </div>
    </div>
  </div>
</template>


<script>
export default {
  name: "App",
  props: [],
  components: {},
  data() {
    return {
      newData: {
        proName: "",
        column: "",
        brand: "",
        logo: "",
        proImg: "",
        price: "",
        introduce: "",
        stock: "",
        discount: "",
        score: ""
      }
    };
  },
  //方法 函数写这里
  methods: {
      updateShopsignOut(){

      },
      updateShopSubmit(){

      },
  },
  //计算属性
  computed: {},
  //侦听器
  watch: {},
  //过滤器
  filters: {},
  //以下是生命周期
  //组件创建之前
  beforeCreate() {},
  //组件创建之后
  created() {},
  //页面渲染之前
  beforeMount() {},
  //页面渲染之后
  mounted() {},
  //页面视图数据更新之前
  beforeUpdate() {},
  //页面视图数据更新之后
  updated() {},
  //页面销毁之前
  beforeDestroy() {},
  //页面销毁之后
  destroyed() {}
};
</script>
<style lang="scss" scoped>
.updateShop {
  width: 1000px;
  height: 600px;
  background-color: #fff;
  position: absolute;
  top: 50px;
  left: 200px;
  box-shadow: #ccc 0px 0px 40px;
}
.updateShop ul {
  margin-top: 20px;
}

.updateShop ul li {
  margin: 10px 0px;
}

.updateShop ul li label {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  width: 100px;
  height: 40px;
  margin: 0 20px;
  text-align: right;
}

.updateShop ul li input {
  width: 500px;
  height: 26px;
}

.updateShop .buttons {
  display: flex;
  width: 400px;
  font-size: 16px;
  justify-content: space-between;
  align-items: center;
  margin-left: 140px;
}
.updateShop .buttons button {
  width: 80px;
  height: 30px;
}
</style>
